<script>
	export default {
		onLaunch() {
			this.$u.post('/api/index/getConfig').then(res=>{
				if(res.appAuditState === '1'){
					this.$u.vuex('appAuditState',1)
				}
				let vuex_tabbar = [
					{
						iconPath: "/static/tabbar/tab0.png",
						selectedIconPath: "/static/tabbar/tab0-h.png",	
						text: '首页',
						customIcon: false
					},
					{
						iconPath: "/static/tabbar/tab1.png",
						selectedIconPath: "/static/tabbar/tab1-h.png",
						text: '情感话廊',
						customIcon: false
					},
					{
						iconPath: "/static/tabbar/min_button_select.png",
						selectedIconPath: "/static/tabbar/min_button_select.png",
						midButton: true,
						text: '',
						customIcon: false
					},
					{
						iconPath: "/static/tabbar/tab3.png",
						selectedIconPath: "/static/tabbar/tab3-h.png",
						text: '情商学院',
						customIcon: false
					},
					
					{
						iconPath: "/static/tabbar/tab4.png",
						selectedIconPath: "/static/tabbar/tab4-h.png",
						text: '我的',
						customIcon: false
					}
				]
				this.$u.vuex('vuex_tabbar',vuex_tabbar)
			})
		}
	}
</script>

<style lang="scss">
	@import "static/font/iconfont.css";
	@import "uview-ui/index.scss";
</style>